<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="follow, index">

<title><?= $template['title'];?> </title>

<?= $template['metadata'];?>

<?= setting('google_analytics');?>




<!-- Styles -->

<?php
// add logic if user is logged in to flush the assets cache
// Assets::clear_cache();
?>

<?php Assets::css($this->config->item('theme_css')); ?>
<link
	href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"
	rel="stylesheet">
<link href="<?= base_url();?>assets/css/style.css" rel="stylesheet">
<link href="<?= base_url();?>assets/css/ypstyle.css" rel="stylesheet">
<link href="<?= base_url();?>assets/css/jquery-ui.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
<!-- JS -->
<?php Assets::cdn($this->config->item('theme_jscdn')); ?>
<?php  Assets::js($this->config->item('theme_js')); ?>

<script src="<?= base_url();?>assets/js/jquery-ui-1.10.3.custom.js"></script>
<!-- favicon -->
<link rel="shortcut icon"
	href="<?php echo base_url('assets/img/ico/favicon.ico'); ?>">
</head>



<body data-baseurl="<?= base_url(); ?>">


	<section class="header">
		<?php
		if (isset($template['partials']['header']))
			echo $template['partials']['header'];
		?>
	</section>

<?php 
if($template['breadcrumbs']){
?>				
						
	<div class="row">
		<div class="container">
			<div class="1col-lg-12">
				<ul class="breadcrumb">
					<li><a href="<?=base_url();?>"><i class="fa fa-lg fa-home"></i> </a>
					</li>
					<li><a href="<?=base_url().location('',TRUE);?>">Home </a>
					</li>

					<?php 
						foreach ($template['breadcrumbs'] as $breadcrumbs):
						?>
					<li><a
						href="<?=base_url().location();?>/<?= $breadcrumbs['uri']; ?>"><?= $breadcrumbs['name']; ?>
					</a>
					</li>
					<?php 		
					endforeach;
					?>
				</ul>
			</div>
		</div>
	</div>
<?php }?>
	<!-- PAGE CONTENT -->
	
	



	<div class="row">
		<div class="container">
			<div class="col-lg-8">
			<?php if($page == "SEARCH"){?>
<div class="alertBox m-bot-25 bg-yellow">
	<strong class="font18"><i class="fa fa-lg fa-exclamation-triangle "></i> Searching for
		businesses with <?= ($key ? $key : ""); ?> <?= ($loc ? " in ".$loc : ""); ?>.</strong>
</div>


<!-- BANNER -->
<div class="pin m-bot-35">
	<div class="col3">
		<?php if($bannerInner){?>
	<?php foreach($bannerInner as $bannerInner):?>
		<div class="item">

			<img class="product-image menu-item img-responsive"
				src="<?=base_url()?>assets/img/advertisement/<?= $bannerInner->value;?>"
				contenteditable="false">

		</div>
		<?php endforeach;}?>

	</div>
</div>
<?php }?>

			<?php if($page == "FRONT"){?>
			<div class="clearfix m-bot-35">
	<span class="font18"> <i
		class="fa fa-1x fa-exclamation-triangle pull-left fa-border yellow"></i>
		Searching for <strong><span class="text-danger"> <?= $catData['name']; ?>
		</span> </strong> in <strong><span class="text-danger"><?= $locData['name']; ?>
		</span> </strong>
	</span>
	<hr class="soft-line">


	<p>
		<?= ($catData['description'] ? $catData['description'] : ""); ?>
	</p>
</div>



<!-- BANNER -->
<div class="pin m-bot-35">
	<div class="col3">
	
	<?php if($bannerInner){?>
	<?php foreach($bannerInner as $bannerInner):?>
		<div class="item">

			<img class="product-image menu-item img-responsive"
				src="<?=base_url()?>assets/img/advertisement/<?= $bannerInner->value;?>"
				contenteditable="false">

		</div>
		<?php endforeach;}?>
		
	
	</div>
</div>
<!-- END OF BANNER -->
	<?php }?>		
			
				<?php echo $template['body'];?>
				
				
			</div>

			<div class="col-lg-4 pull-right">

				<?php
				if (isset($widget_recent_listing) && $widget_recent_listing == TRUE)
					echo Modules::run('widget/recent_listing/show');
				?>

				<?php if(isset($adsense) && $adsense != ''){?>
				
				
				<div class="adspace end">
					<script async
						src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
					<!-- RESPONSIVE2 -->
					<ins class="adsbygoogle" style="display: block"
						data-ad-client="<?php echo $adsense;?>" data-ad-format="auto"></ins>
					<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>
				</div>
				<?php }?>

				<?php
				if (isset($widget_popular_listing) && $widget_popular_listing == TRUE)
					echo Modules::run('widget/popular_listing/show');
				?>


			</div>





		</div>
	</div>











    <?php
    if (isset($template['partials']['footer']))
        echo $template['partials']['footer'];
    ?>







</body>
</html>
